<template>
  <div class="home">
    <el-container>
      <el-header>东软云医院HIS系统</el-header>
      <el-container>
        <el-aside width="200px">
          <el-menu router>
            <el-submenu :index="item.path" v-for="(item,i) in this.$router.options.routes"  v-if="item.meta.hasChildren">
              <template slot="title">
                <i class="el-icon-location"></i>
                <span>{{item.meta.title}}</span>
              </template>
              <el-menu-item-group>
                <el-menu-item :index="child.path" v-for="(child,i) in item.children">{{child.meta.title}}</el-menu-item>
              </el-menu-item-group>
            </el-submenu>
          </el-menu>
        </el-aside>
        <el-main>
          <router-view/>
        </el-main>
      </el-container>
    </el-container>
  </div>
</template>

<script>


export default {
  name: 'Home',
  methods: {

  },

  components: {

  },

}
</script>
